package com.moon.cloud.common.request;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 搜索请求基类
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Schema(description = "搜索请求")
public class SearchRequest extends PageRequest {

    /**
     * 搜索关键词
     */
    @Schema(description = "搜索关键词", example = "关键词")
    protected String keyword;

    public SearchRequest() {
    }

    public SearchRequest(String keyword) {
        this.keyword = keyword;
    }

    public SearchRequest(Integer pageIndex, Integer pageSize, String keyword) {
        super(pageIndex, pageSize);
        this.keyword = keyword;
    }

}
